package com.teemor;

import java.util.concurrent.Executor;
import java.util.concurrent.Executors;

/**
 * @author zhoulike
 * @date 2024/7/9 14:29
 */
public class Main {
    public static void main(String[] args) {

        Executor executor = Executors.newFixedThreadPool(10);
        Channel channel = new Channel();
        for (int i = 0; i < 5; i++) {
            new Node(channel, 5, executor).start();
        }

        while (true) {
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }

    }
}